package com.panghl.service;

import com.panghl.entity.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;

/**
 * @Author panghl
 * @Date 2022/2/18
 **/
public interface ArticleService {
    Article findByCategory(String category);

    Page<Article> findByCategoryLikeAndSort(String category, Pageable pageable);
}
